package demo01;

public abstract class Component {
    public String getName() {
        return name;
    }

    public Component() {
    }

    public Component(String name) {
        this.name = name;
    }

    public void setName(String name) {
        this.name = name;
    }

    protected String name;
    public abstract void Add(Component component);
    public abstract void Remove(Component component);
    public abstract void Display( int depth);

}
